package com.butterfly.hotkey.dashboard.biz.enums;

import com.google.common.collect.Sets;

import java.util.Set;

/**
 * @author butterfly
 * @since 2025/2/23
 */
public enum StateEnum {

    ENABLE(1, "启用"),
    DISABLE(0, "禁用");

    private final Integer code;
    private final String desc;

    StateEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static Set<Integer> codes() {
        return Sets.newHashSet(
                ENABLE.code,
                DISABLE.code
        );
    }


}
